package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 在线咨询
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2021-03-23 08:51:28
 */
@TableName("zaixianzixun")
public class ZaixianzixunEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 标题
     */

    private String biaoti;
    /**
     * 咨询内容
     */

    private String zixunneirong;
    /**
     * 咨询时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat
    private Date zixunshijian;
    /**
     * 用户名
     */

    private String yonghuming;
    /**
     * 联系电话
     */

    private String lianxidianhua;
    /**
     * 是否审核
     */

    private String sfsh;
    /**
     * 审核回复
     */

    private String shhf;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public ZaixianzixunEntity() {

    }


    public ZaixianzixunEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：标题
     */
    public String getBiaoti() {
        return biaoti;
    }

    /**
     * 设置：标题
     */
    public void setBiaoti(String biaoti) {
        this.biaoti = biaoti;
    }

    /**
     * 获取：咨询内容
     */
    public String getZixunneirong() {
        return zixunneirong;
    }

    /**
     * 设置：咨询内容
     */
    public void setZixunneirong(String zixunneirong) {
        this.zixunneirong = zixunneirong;
    }

    /**
     * 获取：咨询时间
     */
    public Date getZixunshijian() {
        return zixunshijian;
    }

    /**
     * 设置：咨询时间
     */
    public void setZixunshijian(Date zixunshijian) {
        this.zixunshijian = zixunshijian;
    }

    /**
     * 获取：用户名
     */
    public String getYonghuming() {
        return yonghuming;
    }

    /**
     * 设置：用户名
     */
    public void setYonghuming(String yonghuming) {
        this.yonghuming = yonghuming;
    }

    /**
     * 获取：联系电话
     */
    public String getLianxidianhua() {
        return lianxidianhua;
    }

    /**
     * 设置：联系电话
     */
    public void setLianxidianhua(String lianxidianhua) {
        this.lianxidianhua = lianxidianhua;
    }

    /**
     * 获取：是否审核
     */
    public String getSfsh() {
        return sfsh;
    }

    /**
     * 设置：是否审核
     */
    public void setSfsh(String sfsh) {
        this.sfsh = sfsh;
    }

    /**
     * 获取：审核回复
     */
    public String getShhf() {
        return shhf;
    }

    /**
     * 设置：审核回复
     */
    public void setShhf(String shhf) {
        this.shhf = shhf;
    }

}
